package com.powergame.console;

import com.powergame.exceptions.PowerGameException;
import com.powergame.main.PowerGame2DMain;
import de.lessvoid.nifty.controls.Console;
import de.lessvoid.nifty.controls.ConsoleCommands.ConsoleCommand;

/**
 * StartGameCommand.java
 *
 * Modélise la commande de démarrage du jeu
 *
 * @author ToF
 */
public class StartGameCommand implements ConsoleCommand {

    private PowerGame2DMain application = null;
    
    private Console console = null;
    
    public StartGameCommand(PowerGame2DMain application, Console console){
        this.application = application;
        this.console = console;
    }
    
    public void execute(String[] strings) {
        try{
            application.nextTour();
        }catch(PowerGameException e){
            application.output("ERREUR: " + e.getMessage());
        }
    }
}
